#!/bin/csh

set _cpu = `ps aux |grep '^squid' |awk '{print $3*10}'`

if ($_cpu != '' && $_cpu > 900) then
	killall -9 squid
	sleep 3
	service squid start
endif
